package com.css.fxfzypg.modules.suggestinfo.analysis.disasterscenario.controller;

import com.css.fxfzypg.modules.suggestinfo.analysis.disasterscenario.service.DisasterScenarioService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/disasterScenario")
@Slf4j
public class DisasterScenarioController {

    @Autowired
    DisasterScenarioService disasterScenarioService;

    /**
     * 获取灾害情景分析详情页(对策建议分析模块)
     * @param params
     * @return
     */
    /*@GetMapping("/getDisasterScenarioData")
    public RestResponse getDisasterScenarioData(ParamsVo params) {
        RestResponse response = null;
        try{
            DisasterScenarioEntity disasterScenarioEntity = disasterScenarioService.getDisasterScenarioData(params);
            response = RestResponse.succeed(disasterScenarioEntity);
            response.setMessage("获取详情页数据成功");
        }catch (Exception e){
            log.error("获取详情页数据失败!",e);
            response=RestResponse.fail("获取详情页数据失败!");
        }
        return response;
    }*/

}
